package com.baiytfp.hf.HFDataExchange.action.dao;

import com.baiytfp.hf.HFDataExchange.common.model.base.TableName;
import com.baiytfp.hf.HFDataExchange.common.model.table.User_role;
import com.baiytfp.hf.baiytfp.framework.base.BaseDao;
import com.baiytfp.hf.baiytfp.hfutils.HFDBHelper;
import org.springframework.stereotype.Repository;

import java.sql.Connection;
import java.util.List;

@Repository
public class RoleDAOImpl extends BaseDao {
	public List<User_role> getHasUserCodeByUserRole(String role_code) throws Exception {
		return HFDBHelper.list(TableName.USER_ROLE, " where role_code=? ", User_role.class, new Object[]{role_code});
	}
}
